﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SnackXpress.Client;
using SnackXpress.abstract_factory;

namespace SnackXpress.Decorator
{
    public abstract class SnackDecorator : Snack
    {
        private Snack _decoratedSnack;

        public SnackDecorator(Snack decoratedSnack)
        {
            _decoratedSnack = decoratedSnack;
        }

        public override double GetCost()
        {
 	        return this._decoratedSnack.GetCost();
        }
    }
}
